package com.xiaozhengkeji.springboot.speed.services;


import com.xiaozhengkeji.springboot.speed.pojo.UserPoJo;
import org.springframework.stereotype.Service;

@Service
public interface UserService {
    /**
     * 获取用户信息
     */
    UserPoJo getUser(String username);

    /**
     * 注册用户
     */
    Boolean regUser(UserPoJo userPoJo);

    /**
     * 判断Token
     */
    Boolean isToken(String token);

    /**
     * 更新Token
     */
    void upToken(String token);

    /**
     * 注销Token
     */
    void outToken(String userName);
}
